package com.developer.t24haber.model;

import java.io.Serializable;

import android.graphics.Bitmap;

public class News implements Serializable {

	private String title;
	private String description;
	private String link;
	private String guid;
	private String imageUrl;
	private Bitmap image;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Bitmap getImage() {
		return image;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((guid == null) ? 0 : guid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) return true;
		if (obj == null) return false;
		if (getClass() != obj.getClass()) return false;
		News other = (News) obj;
		if (guid == null) {
			if (other.guid != null) return false;
		} else if (!guid.equals(other.guid)) return false;
		return true;
	}

	@Override
	public String toString() {
		return "News [title=" + title + ", description=" + description + ", link=" + link + ", guid=" + guid + ", imageUrl=" + imageUrl + "]";
	}

}
